package com.xinhuajs.articlemg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xinhuajs.articlemg.dao.IInvcodeDAO;
import com.xinhuajs.articlemg.model.IcRegiDetail;
import com.xinhuajs.articlemg.model.InvcodeInfo;
import com.xinhuajs.articlemg.pojo.Area;
import com.xinhuajs.articlemg.pojo.Invcode;
import com.xinhuajs.articlemg.pojo.Typecode;
import com.xinhuajs.articlemg.service.IInvcodeService;

@Service("invcodeService")
public class InvcodeServiceImpl implements IInvcodeService {
	@Autowired
	 private IInvcodeDAO invcodeDAO;
	
	
	@Override
	public int getInvcodeCount(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return invcodeDAO.getInvcodeCount(paramMap);
	}

	@Override
	public List<InvcodeInfo> getInvcodeInfoByPage(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return invcodeDAO.getInvcodeInfoByPage(paramMap);
	}

	@Override
	public void addTypecode(Typecode typecode) {
		// TODO Auto-generated method stub
		invcodeDAO.addTypecode(typecode);
	}

	@Override
	public void addInvcode(Invcode invc) {
		// TODO Auto-generated method stub
		invcodeDAO.addInvcode(invc);
	}

	@Override
	public List<Area> getAllCities() {
		// TODO Auto-generated method stub
		return invcodeDAO.getAllCities();
	}

	@Override
	public List<Area> getAllAreasByCity(String pcode) {
		// TODO Auto-generated method stub
		return invcodeDAO.getAllAreasByCity(pcode);
	}

	@Override
	public int getIcRegiDetlCount(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return invcodeDAO.getIcRegiDetlCount(paramMap);
	}

	@Override
	public List<IcRegiDetail> getIcRegiDetlByPage(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		return invcodeDAO.getIcRegiDetlByPage(paramMap);
	}

	@Override
	public boolean deleteIcByInvid(String invid) {
		// TODO Auto-generated method stub
		return invcodeDAO.deleteIcByInvid(invid);
	}

	@Override
	public boolean updateIcStat(Invcode invcode) {
		// TODO Auto-generated method stub
		return invcodeDAO.updateIcStat(invcode);
	}


	@Override
	public Invcode getIcByInvid(String invid) {
		// TODO Auto-generated method stub
		return invcodeDAO.getIcByInvid(invid);
	}

	@Override
	public void updateIcUnit(Invcode invcode) {
		// TODO Auto-generated method stub
		invcodeDAO.updateIcUnit(invcode);
	}

	@Override
	public void updateTerminal(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		invcodeDAO.updateTerminal(paramMap);
	}


   
	
	
	
	
}
